package com.boang.entity;

/*
    @author:sa
    @date:2024/11/19 16:22
*/
public abstract class Account {
    public String carNo;
    public String passwd;
    public int balance;



    public  Account(String carNo,String passwd,int balance){
        this.carNo=carNo;
        this.passwd=passwd;
        this.balance=balance;
    }
    public void saveMoney(int money,Account account){
        balance+=money;
    }
    public abstract void save(int money);
    public abstract void deposit(int m);
}